package hk.mrtomato.control;

import hk.mrtomato.dto.MrdateDTO;
import hk.mrtomato.help.ActionForward;
import hk.mrtomato.model.MrBoardService;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

public class GoModifyDateAction implements Action {

	@Override
	public ActionForward execute(HttpServletRequest request,
			HttpServletResponse response) {
		ActionForward forward = new ActionForward();
		MrBoardService service = MrBoardService.getInstance();
		String seq = request.getParameter("seq");
		MrdateDTO dto = service.detailDate(seq);
		request.setAttribute("data", dto);
		forward.setUrl("datemodify");
		return forward;
	}

}
